package com.maxmlr.music.dao;

import com.maxmlr.music.model.Picture;

import java.util.List;
import java.util.Map;


/**
 * 用户图片
 * 
 * @author maxiao
 * 
 */
public interface PictureMapper {

	List<Picture> findUserPic(Integer page, Integer picnum);

	void addPicture(Picture picture);

	void update(Picture picture);

	void dalete(Integer id);

	List<Picture> findMainPic(Integer page, Integer picnum);

	Picture findUserById(Integer id);

	/**
	 * 
	 * @param id
	 * @return
	 */
	Picture findById(Integer id);

	Picture findByNameAndCategory(String pic_name, String pic_category);

	List<Picture> findByCategory(Map<String, Object> prams,
                                 String pic_category, Integer page, Integer picnum);

	Integer countPic(Picture picture);

	void insertPic(Picture picture);

	void updatePic(Picture picture);

	void daletePicById(Integer id);

	void daletePicByNameAndCategory(String pic_name, String pic_category);

	void daletePic(Picture picture);
	/***/
}
